void ShowDate(int y, int m)
{
    int firstDay = GetFirstDayInTable(y, m);  
    int days = GetDaysofMonth(y, m);      

    printf("***********************************\n");

    printf("  Sun  Mon  Tue  Wen Thur  Fri  Sta\n");

    int i;

    for (i = 0; i < firstDay; i++) {
        printf("     "); 
    }

    for (int day = 1; day <= days; day++) {
        printf("%5d", day); 

        if ((day + firstDay) % 7 == 0) {
            printf("\n");
        }
    }

    if ((days + firstDay) % 7 != 0) {
        printf("\n");
    }

    printf("***********************************\n");
}
